org.eclipse.vtp.framework.databases.configurations
Class DatabaseColumnConfiguration

java.lang.Object
  extended by org.eclipse.vtp.framework.databases.configurations.DatabaseColumnConfiguration
All Implemented Interfaces:
IConfiguration, DatabaseConstants

public class DatabaseColumnConfiguration
extends java.lang.Object
implements IConfiguration, DatabaseConstants

A configuration for a column in a database table.

Author:
Lonnie Pryor

Field Summary
static int TYPE_BIG_DECIMAL
          The database long decimal type.
static int TYPE_BIG_NUMBER
          The database long number type.
static int TYPE_BOOLEAN
          The database true/false type.
static int TYPE_DATETIME
          The database date and time type.
static int TYPE_DECIMAL
          The database short decimal type.
static int TYPE_NUMBER
          The database short number type.
static int TYPE_TEXT
          The database long string type.
static int TYPE_VARCHAR
          The database short string type.
 
Fields inherited from interface org.eclipse.vtp.framework.databases.configurations.DatabaseConstants
NAME_COLUMN, NAME_COMPARISON, NAME_CRITERIA, NAME_DATABASE, NAME_DRIVER, NAME_JDBC_DATABASE, NAME_JNDI_DATABASE, NAME_MAPPING, NAME_NAME, NAME_PASSWORD, NAME_QUERY, NAME_RESULT_CARDINALITY, NAME_RESULT_LIMIT, NAME_RESULT_NAME, NAME_RESULT_TYPE, NAME_TABLE, NAME_TIMEOUT, NAME_TYPE, NAME_URI, NAME_URL, NAME_USERNAME, NAME_VALUE, NAMESPACE_URI
 
Constructor Summary
DatabaseColumnConfiguration()
          Creates a new DatabaseColumnConfiguration.
 
Method Summary
 java.lang.String getName()
          Returns the name of the column.
 int getType()
          Returns the type of the column.
 void load(org.w3c.dom.Element configurationElement)
          Loads the configuration information from the specified XML element.
 void save(org.w3c.dom.Element configurationElement)
          Saves the configuration information into the supplied XML element.
 void setName(java.lang.String name)
          Sets the name of the column.
 void setType(int type)
          Sets the type of the column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_BIG_DECIMAL

public static final int TYPE_BIG_DECIMAL
The database long decimal type.

See Also:
Constant Field Values

TYPE_BIG_NUMBER

public static final int TYPE_BIG_NUMBER
The database long number type.

See Also:
Constant Field Values

TYPE_BOOLEAN

public static final int TYPE_BOOLEAN
The database true/false type.

See Also:
Constant Field Values

TYPE_DATETIME

public static final int TYPE_DATETIME
The database date and time type.

See Also:
Constant Field Values

TYPE_DECIMAL

public static final int TYPE_DECIMAL
The database short decimal type.

See Also:
Constant Field Values

TYPE_NUMBER

public static final int TYPE_NUMBER
The database short number type.

See Also:
Constant Field Values

TYPE_TEXT

public static final int TYPE_TEXT
The database long string type.

See Also:
Constant Field Values

TYPE_VARCHAR

public static final int TYPE_VARCHAR
The database short string type.

See Also:
Constant Field Values
Constructor Detail

DatabaseColumnConfiguration

public DatabaseColumnConfiguration()
Creates a new DatabaseColumnConfiguration.

Method Detail

getName

public java.lang.String getName()
Returns the name of the column.

Returns:
The name of the column.

setName

public void setName(java.lang.String name)
Sets the name of the column.

Parameters:
name - The name of the column.

getType

public int getType()
Returns the type of the column.

Returns:
The type of the column.

setType

public void setType(int type)
Sets the type of the column.

Parameters:
type - The type of the column.

load

public void load(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Loads the configuration information from the specified XML element.

Specified by:
load in interface IConfiguration
Parameters:
configurationElement - The element to load the configuration from.

save

public void save(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Saves the configuration information into the supplied XML element.

Specified by:
save in interface IConfiguration
Parameters:
configurationElement - The element to save the configuration to.